home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / src / l / inet-handler / Makefile < prev    next >
Makefile  |  1994-04-05  |  1KB  |  53 lines

  1. #
  2. # GNUmakefile
  3. #
  4. # Author: Tomi Ollila <too@cs.hut.fi>
  5. #
  6. #    Copyright (c) 1993 Tomi Ollila
  7. #        All rights reserved
  8. #
  9. # Created: Tue Sep 14 14:11:54 1993 too
  10. # Last modified: Tue Apr  5 19:53:04 1994 too
  11. #
  12. # $Id: Makefile,v 3.4 1994/04/05 16:53:22 too Exp $
  13. #
  14.  
  15. PRG=    inet-handler
  16.  
  17. CC=    gcc
  18. CFLAGS= -O3 -Wall -Inetinclude: -I.
  19. #CFLAGS=  -O3 -Wall -DDEBUG -Inetinclude: -I.
  20. LFLAGS= -nostdlib -s
  21.  
  22. SRC=    handler.c applport.c cleanup.c args.c readargs.c interrupt.c c.c
  23.  
  24. OBJ=    $(SRC:.c=.o)
  25.  
  26. all:    $(PRG)
  27.  
  28. .c.o:
  29.     $(CC) $(CFLAGS) -o $@ -c $<
  30. #    $(CC) $(CFLAGS) $<
  31.  
  32.  
  33. inet-handler.o: inet-handler.c
  34.     $(CC) -O3 -o $@ -D__AMIGADATE__='"$(shell amigadate)"' -c inet-handler.c
  35. #    $(CC) -S inet-handler.c
  36.  
  37. handler.E: handler.c
  38.     $(CC) -E $(CFLAGS) -o handler.E -c handler.c
  39.  
  40. interrupt.s: interrupt.c
  41.     $(CC) -v -S $(CFLAGS) -o interrupt.s -c interrupt.c
  42.  
  43. $(PRG): $(OBJ) inet-handler.o
  44.     $(CC) $(LFLAGS)  -o $@ inet-handler.o $(OBJ)
  45.  
  46. FRC:
  47.  
  48.  
  49. handler.o:    handler/begin.c handler/startup.c handler/pendingwrites.c \
  50.         handler/readevent.c handler/applmsg.c handler/timermsg.c \
  51.         handler/mymsg.c handler/cleanup.c
  52.